package dba.example.entities
import scala.math._
import org.junit.runner.RunWith
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.FunSuite
import org.scalatest.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class TestEntities extends FunSuite with ShouldMatchers {

  test("Company") {
    val company = Company("name")
    company.name should equal("name")
  }
  
  test("Account") {
    val account = Account("username", "password", "name", Company("name"))
    account.username should equal("username")
    account.password should equal("password")
    account.name should equal("name")
    account.company.name should equal("name")
  }

}